<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title>My application</title>
<%= stylesheet_link_tag 'style' %>
<%= javascript_include_tag :defaults %>
</head>
<body>
	<div id="content">
           <div id="login_logout">
            <% unless @current_user.blank? %>
              Logged in as: 
              <%= @current_user.login %>
              <em><%= link_to "(Logout)", :controller => 'account', :action => 'logout' %></em>
            <% else %>
               <em>Not logged in.</em>
               <%= link_to 'Login', :controller => 'account', :action => 'login' %>
            <% end %>
            </div>
            <h1>Blogg</h1>
            <% unless flash[:notice].blank? %>
            <div id="notification"><%= flash[:notice] %></div>
            <% end %>
            <% unless flash[:warning].blank? %>
            <div id="notification"><%= flash[:warning] %></div>
            <% end %>
	<%= yield %>
	</div>
<ul id="navigation">
  <li><%= link_to 'Front page stories', :controller => 'story' %></li>
  <li><%= link_to 'Upcoming stories', :controller => 'story', :action => 'bin'%></li>
  <li><%= link_to 'Submit a new story!', :controller => 'story', :action => 'new' %></li>
  <li><%= link_to 'My tables', :controller => 'sheet', :action => 'index'%> </li>
</ul>
</body>
</html>

